<article>
  <header>
    <h1><%= @article.name %></h1>
  </header>

  <div>
    <div class="meta"><%= @article.created_at.strftime('%Y-%m-%d') %></div>
    <p>
      <%= raw @article.content %>
    </p>
  </div>

  <section id="article-comments">
    <h4>Comments</h4>
    <ol id="comments">
      <% @article.comments.each do |comment| %>
          <li>
            <article class="comment">
              <div class="comment-name">
                <strong><%= comment.name %></strong>
              </div>
              <div class="comment-body">
                <p><%= comment.body %></p>
              </div>
            </article>
          </li>
      <% end %>
    </ol>

    <%= render 'articles/comments/form' %>
  </section>
</article>

